<template>
    <el-card style="margin-bottom: 10px;">
        <el-radio-group v-model="value" @click="$emit('checkCollege', value)">
            <template v-for="(college, index) in colleges" :key="index">
                <el-radio :label="college.code" size="small" border style="margin: 5px;">{{ college.name }}</el-radio>
            </template>
        </el-radio-group>
    </el-card>
</template>
<script>
export default {
    data() {
        return {
            value:null,
            colleges: [{
                code: '04',
                name: '信息工程学院',
                status: 0
            }, {
                code: '05',
                name: '软件学院',
                status: 0
            }, {
                code: '06',
                name: '数理学院',
                status: 0
            }, {
                code: '07',
                name: '机电学院',
                status: 0
            }],
        }
    }
}
</script>